Completed
Pull Request — master (#5)
by Vitor
02:25
created

getResumeDataProvider.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 33
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 33
rs 10
c 0
b 0
f 0
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getResumeDataProvider = () => {
4
    const { resume } = useStaticQuery(graphql`
5
    {
6
        resume: dataYaml(slug: {eq: "resume"}) {
7
            title
8
            subtitle
9
            links {
10
                name
11
                href
12
            }
13
            intro
14
            education {
15
                name
16
                title
17
                year
18
            }
19
            experience {
20
                company
21
                location
22
                duration
23
                roles {
24
                    title
25
                    date
26
                }
27
                description
28
                tags
29
            }
30
        }
31
    }
32
`);
33
34
    return resume;
35
};
36